<template>
    <div class="user-list">
       <p>报名用户</p>
        <ul>
            <li v-for="i in userlist" :key="i.id"><img :src="i.img" alt=""></li>
        </ul>
        <div style="clear: both"></div>
    </div>
</template>

<script>
    export default {
        name: "UserList",
        props:['userlist']
    }
</script>

<style scoped lang="less">
    .user-list{
        margin-top: 20px;
        margin-bottom: 10px;
        ul{
            li{
                float: left;
                margin-right: 15px;
                margin-top: 12px;
            }
            >:nth-child(5n+5){
                margin-right: 0;
            }
        }

        p{
            width: 90px;
            height: 30px;
            background-color: #ff5371;
            border-radius: 0px 15px 15px 0px;
            font-size: 16px;
            font-weight: normal;
            font-stretch: normal;
            line-height: 30px;
            letter-spacing: 0px;
            color: #ffffff;
            text-align: center;
            margin-bottom: 5px;
        }
        img{
            width: 40px;
            height: 40px;
            border-radius: 50%;
        }
    }

</style>